/* 导入主页样式 */
@import url('index.css');

/* AI 助手页面特定样式 */
body {
    background: linear-gradient(135deg, #000428 0%, #004e92 100%);
    color: #ffffff;
}

.chat-container {
    max-width: 800px;
    margin: 80px auto 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.2);
    overflow: hidden;
}

.chat-header {
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 15px;
    text-align: center;
    font-size: 1.5rem;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    max-width: 80%;
}

.user-message {
    background-color: rgba(0, 168, 255, 0.3);
    align-self: flex-end;
    margin-left: auto;
}

.ai-message {
    background-color: rgba(255, 255, 255, 0.2);
    align-self: flex-start;
}

.chat-input {
    display: flex;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
}

#user-input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

#send-button {
    padding: 10px 20px;
    margin-left: 10px;
    border: none;
    border-radius: 5px;
    background-color: var(--accent-color);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#send-button:hover {
    background-color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .chat-container {
        margin: 60px 20px 0;
    }
}

/* 暗黑模式样式 */
body.dark-theme {
    background: linear-gradient(135deg, #000010 0%, #000428 100%);
}

body.dark-theme .chat-container {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme .chat-header {
    background-color: rgba(0, 0, 0, 0.7);
}

body.dark-theme .user-message {
    background-color: rgba(0, 168, 255, 0.2);
}

body.dark-theme .ai-message {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .chat-input {
    background-color: rgba(0, 0, 0, 0.5);
}

body.dark-theme #user-input {
    background-color: rgba(255, 255, 255, 0.05);
}